package advanced.io.commons_io;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * apache 的commons工具包
 */
public class L {
    public static void main(String[] args) {
        String filePath = "";
        //文件大小
        long len = FileUtils.sizeOf(new File(filePath));
        //清空文件目录
        try {
            FileUtils.cleanDirectory(new File(filePath));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
